<div id="formsuccess" style="display:none">{if isset($errors.status) && $errors.status == "success"}{$website->getEditUrl($website->getLang())}{/if}</div>
<form name="form" method="post" action="?module=backoffice&action=AjaxContext&href={$href}" class="nyroModal">
{t assignTo=title}Add website{/t}
{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalTitle.html" title=$title}
<div id="modalContent">
		<table class="listTable">
            {t assignTo=help}Label - Type here the website label. It's only used to identify the website in the admin panel.{/t}
            <tr><td>{icon name="help.png" class="toolTip" title=$help}</td><td>{t}Label{/t} :</td><td><input type="text" name="form[label]" value="{if isset($values.label)}{$values.label|escape:"html"}{/if}" style="width:300px" title="" />{if isset($errors.label)} {icon name="warning.png"} {$errors.label}{/if}</td></tr>
            {t assignTo=help}URL - Type here the main address of your website without indicate any pages or folders (ex: www.example.com).{/t}
            <tr><td>{icon name="help.png" class="toolTip" title=$help}</td><td>{t}URL{/t} :</td><td>http://<input type="text" name="form[url]" value="{if isset($values.label)}{$values.url|escape:"html"}{/if}" style="width:300px" title="" />{if isset($errors.url)} {icon name="warning.png"} {$errors.url}{/if}</td></tr>
            {t assignTo=help}Language - Select here the main language for the website{/t}
            <tr>
                <td>{icon name="help.png" class="toolTip" title=$help}</td>
                <td>{t}Website language{/t} :</td>
                <td>
                    <select name="form[lang]" style="height: 22px;">
                        {foreach from=$isoCode item=lang}
                        <option value="{$lang.iso_639_1|lower}" {if $lang.iso_639_1 == $selectedLang}selected="selected"{/if}>{$lang.label_en} ({if $lang.label_orig && $lang.label_orig != $lang.label_en}{$lang.label_orig} - {/if}{$lang.iso_639_1})</option>
                        {/foreach}
                    </select>
                    {if isset($errors.lang)} {icon name="warning.png"} {$errors.lang}{/if}
                </td>
            </tr>
		</table>
</div>
{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalFooter.html"}
</form>
